package com.lifa.service.impl;
/**
 * 123
 */
import com.lifa.dao.UserInfoDao;
import com.lifa.entity.Userinfo;
import com.lifa.service.UserInfoService;
import com.lifa.dao.UserInfoDao;
import com.lifa.entity.Userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoDao userInfoDao ;

    @Override
    public List<Userinfo> getAll() {
        return userInfoDao.queryAll();
    }

    @Override
    public List<Userinfo> findAll(String username, int offset, int limit) {
        return userInfoDao.query(username,offset,limit);
    }

    @Override
    public long findTotalCount(String username) {
        return userInfoDao.getTotalCount(username) ;
    }
}
